package com.sunday.common.mq.kafka.study.spring.e6_Receiving_Messages_5_Json_Serializer;

import jakarta.validation.constraints.Max;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ValidatedClass implements Serializable {

    @Max(10)
    private int bar;

    @Override
    public String toString() {
        return "{bar:" + bar + "}";
    }

}
